package cn.com.headfree.adjustment.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gta.edu.sdk.common.dto.Page;

import cn.com.headfree.adjustment.dao.IAdjustMentDao;
import cn.com.headfree.adjustment.service.IAdjustMentService;
import cn.com.headfree.entity.TPersonYearPoint;
import cn.com.headfree.entity.TPointSetOver;
import cn.com.headfree.entity.TSalaryInfo;
import cn.com.headfree.entity.isc.User;

@Service("/adjustMentService")
public class AdjustMentServiceImpl implements IAdjustMentService {
	@Autowired
	private IAdjustMentDao adjustMentDao;

	@Override
	public void getAdjustMentPage(Page<TPersonYearPoint> page, TPersonYearPoint tPersonYearPoint) {
		adjustMentDao.getAdjustMentPage(page,tPersonYearPoint);
	}

	@Override
	public void editPoint(String id, Double trimPoint, String trimReason,Double remainPoint,String salaryGrade) {
		adjustMentDao.editPoint(id,trimPoint,trimReason,remainPoint,salaryGrade);
	}

	@Override
	public List<TPersonYearPoint> getAdjustMentList(TPersonYearPoint tPersonYearPoint, String ids) {
		return adjustMentDao.getAdjustMentList(tPersonYearPoint,ids);
	}

	@Override
	public TPointSetOver preEndPoint(String baseOrgId, int year) {
		return adjustMentDao.preEndPoint(baseOrgId,year);
	}

	@Override
	public void endPoint(User user, int year) {
		adjustMentDao.endPoint(user,year);
	}

	@Override
	public void updateTPersonYearPoint(TPersonYearPoint tp) {
		adjustMentDao.updateTPersonYearPoint(tp);
	}

	@Override
	public List<TSalaryInfo> getDaiSalayInfo(int year, String baseOrgId, String flag) {
		return adjustMentDao.getDaiSalayInfo(year,baseOrgId,flag);
	}

	@Override
	public void editPointDetail(String erpNo, int year, double remainPoint) {
		adjustMentDao.editPointDetail(erpNo,year,remainPoint);
	}

	@Override
	public void editPointDetail(String erpNo, int year, double remainPoint, String salaryGrade) {
		adjustMentDao.editPointDetail(erpNo,year,remainPoint,salaryGrade);
	}

}
